package serviceimpl;

import java.util.List;

import service.ICustomerService;
import vo.Customer;
import dao.ICustomerDao;

public class CustomerService implements ICustomerService {
	   
	ICustomerDao  customerDao;
    public ICustomerDao getCustomerDao() {
		return customerDao;
	}
	public void setCustomerDao(ICustomerDao customerDao) {
		this.customerDao = customerDao;
	}

		
	    //======1.显示商品=============
	public List getCustomer(int page,int rows,String hql) 
	{
		
	  return	customerDao.getCustomer(page, rows,hql);
	}

	
			//======2.添加商品============
	public void addCustomer(Customer customer){
		 customerDao.addCustomer(customer);
	}
			
			//======3.删除商品============
	public void delCustomer(int customerId){
		 customerDao.delCustomer(customerId);
		
	}
			
			//======4.编辑商品============
	public void editCustomer(Customer customer){
		 customerDao.editCustomer(customer);
		
	}
			
			//======5.查询商品============
			
			//======6.获得所有的商品数============
	public int getAllCustomer(String hql){
		return  customerDao.getAllCustomer(hql);
	}
		
		
}
